package cn.itsource.wechat.service.impl;

import cn.itsource.basic.service.IBaseService;
import cn.itsource.basic.service.impl.BaseServiceImpl;
import cn.itsource.basic.util.RedisService;
import cn.itsource.wechat.domain.WxUser;
import cn.itsource.wechat.mapper.WxUserMapper;
import cn.itsource.wechat.query.WxUserQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
//Propagation.SUPPORTS:支持别人事务
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class WxUserServiceImpl extends BaseServiceImpl<WxUser, WxUserQuery> implements IBaseService<WxUser, WxUserQuery> {

    @Autowired
    private WxUserMapper wxUserMapper;

    @Autowired
    private RedisService redisService;

    //基础查询由继承得到

}
